c# check if object is of any generic type

42

c# check if object is of any generic type -

return list.GetType().GetGenericTypeDefinition() == typeof(List<>);

Comments

Submit
0 Comments